/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.clientsim;

import edu.upf.grupof.projectphotos.messagesys.InstantMessage;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jivesoftware.smack.XMPPException;

/**
 *
 * @author fredi
 */
public class Client {
    public static void main(String[] args){
        String name = "provesaplis@gmail.com";
        String pass = "provesaplis0";
        String resource = "Home";
        
        boolean connect=true;
        InstantMessage men = InstantMessage.getInstance();
        try {
            men.login(name, pass, resource);
            while(connect){
                
            }
            men.logout();
        } catch (XMPPException ex) {
            Logger.getLogger(InstantMessage.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
